package com.sirius.meta.mall.bus.jdk8.swagger.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


/**
 * @author Surging
 * @version 1.0
 * @date 2021/11/20 19:34
 * @desc: 备份房屋数据实体类
 */

@Data
@EqualsAndHashCode(callSuper = false)
public class EditionBackupsRestoreReqModel {

    @ApiModelProperty("请求类型")
    @NotNull(message = "请求类型不能为空")
    @NotEmpty(message = "请求类型不能为空")
    //请求类型 备份：0001；还原备份：0002； 还原：0003；
    private String requestType;


    @ApiModelProperty("中控code")
    @NotNull(message = "中控code不能为空")
    @NotEmpty(message = "中控code不能为空")
    private String centralCode;


    @ApiModelProperty("房屋ID")
    @NotNull(message = "房屋ID不能为空")
    @NotEmpty(message = "房屋ID不能为空")
    private String houseId;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("版本备份主键ID")
    //还原时不可为空
    private String  editionId;
}